package org.jeecg.modules.farming.news.service.impl;

import org.jeecg.modules.farming.news.entity.NewsCommentPraise;
import org.jeecg.modules.farming.news.mapper.NewsCommentPraiseMapper;
import org.jeecg.modules.farming.news.service.INewsCommentPraiseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 新闻评价-点赞表
 * @Author: jeecg-boot
 * @Date:   2020-12-14
 * @Version: V1.0
 */
@Service
public class NewsCommentPraiseServiceImpl extends ServiceImpl<NewsCommentPraiseMapper, NewsCommentPraise> implements INewsCommentPraiseService {
    @Autowired
    private NewsCommentPraiseMapper newsCommentPraiseMapper;
    @Override
    public NewsCommentPraise getOneByOpenIdAndCommentId(String loginUserId, String id) {
        return newsCommentPraiseMapper.getOneByOpenIdAndCommentId(loginUserId,id);
    }
}
